<?php

function smarty_function_array( $parameters, &$smarty )
{
        $varName = $parameters[ "assign" ];
        unset( $parameters[ "assign" ] );

        if ( isset( $parameters[ "source" ] ) )
        {
                $source = $parameters[ "source" ];
                unset( $parameters[ "source" ] );
                $parameters = array_merge( $source, $parameters );
        }

        $smarty->assign( $varName, $parameters );
}

?>
